package zhoufu.sz.sanxiao_check.ui.adapter;

import android.content.Context;
import java.util.List;
import org.byteam.superadapter.recycler.BaseViewHolder;
import org.byteam.superadapter.recycler.SuperAdapter;
import zhoufu.sz.sanxiao_check.R;
import zhoufu.sz.sanxiao_check.models.TrainListModel;

/**
 * User:RCP
 * email:ruancaipu@gmail.com
 * Date:2016/8/4
 */
public class TrainAdapter extends SuperAdapter<TrainListModel>
{
    public TrainAdapter(Context context,
            List<TrainListModel> items, int layoutResId)
    {
        super(context, items, layoutResId);
    }

    @Override public void onBind(int viewType, BaseViewHolder holder, int position,
            TrainListModel item)
    {
        holder.setText(R.id.mTvTitle, item.getTitle());
        holder.setText(R.id.mTvDate, item.getAddTime());
    }
}
